package com.ybkj.chat.ui.adapter;

import android.content.Context;
import android.view.View;

import com.ybkj.chat.R;
import com.ybkj.chat.bean.response.AllFriendRes;
import com.ybkj.chat.ui.adapter.base.XBaseAdapter;
import com.ybkj.chat.ui.adapter.base.XBaseViewHolder;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;

/**
 * author : ywh
 * date : 2019/2/21 16:08
 * description :全部圈友外层数据
 */
public class AllFriendAbroadAdapter extends XBaseAdapter<AllFriendRes> {

    private XRecyclerView insideRecycle;
    private AllFriendInsideAdapter insideAdapter;

    public AllFriendAbroadAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.all_friend_abroad_reycle_item;
    }

    @Override
    protected void convert(XBaseViewHolder helper, AllFriendRes item) {
        insideRecycle = helper.getView(R.id.inside_recycle);
        insideAdapter = new AllFriendInsideAdapter(mContext);
        insideAdapter.addData("");
        insideAdapter.addData("");
        insideAdapter.addData("");
        insideAdapter.addData("");
        insideAdapter.addData("");
        insideRecycle.setAdapter(insideAdapter);
        insideRecycle.setVisibility(item.isShow() ? View.VISIBLE : View.GONE);
    }
}
